import request from '@/utils/request'
// 获取列表
export function GetListAPI (params) {
  return request({
    url: '/system/shopCalendar/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI (data) {
  return request({
    url: '/system/shopCalendar',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI (data) {
  return request({
    url: '/system/shopCalendar/edit',
    method: 'PUT',
    data
  })
}

// 删除
export function DelDataAPI (data) {
  return request({
    url: '/system/shopCalendar/' + data,
    method: 'DELETE'
  })
}

// 根据编码查询单个工厂日历
export function GetshopCalendarAPI (data) {
  return request({
    url: '/system/shopCalendar/' + data,
    method: 'GET'
  })
}

// ==================
// 日历查看节假日
export function GetViewingAPI (params) {
  return request({
    url: '/system/shopCalendar/viewing',
    method: 'GET',
    params
  })
}

export function GetCalendarAPI (params) {
  return request({
    url: '/system/shopCalendar/viewing',
    method: 'GET',
    params
  })
}